<template>
  <!-- 解决切换页面固定定位抖动的问题 -->
  <div>
    <slot />
  </div>
</template>

<script>
export default {
  mounted() {
    const node = this.$mount().$el
    document.body.appendChild(node)
  },
  destroyed() {
    const node = this.$mount().$el
    node.remove()
  },
  activated() {
    const node = this.$mount().$el
    document.body.appendChild(node)
  },
  deactivated() {
    const node = this.$mount().$el
    node.remove()
  }
}
</script>

<style>

</style>
